package restful.struts2.app1;

import javax.ws.rs.*;

public class EchoAction {
	
	private String message;

	@GET
	@Path("/echo/{message}")
	public String read() {
		return "success";
	}
	
	@POST
	@Path("/echo")
	public String create() {
		return "success";
	}

	@PUT
	@Path("/echo/{message}")
	public String update() {
		return "success";
	}

	@DELETE
	@Path("/echo/{message}")
	public String remove() {
		return "success";
	}
	
	public void setMessage(String message) {
		this.message = message;
	}
	
	public String getMessage() {
		return message;
	}
}
